package com.site.wisdom_construction.service.trainingCheckModule;

import com.site.wisdom_construction.dao.trainingCheckModule.TrainingCoursesRecordsDao;
import com.site.wisdom_construction.entity.trainingCheckModule.TrainingCoursesRecords;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/1/17
 * @Description
 */
@Service
public class TrainingCoursesRecordsService implements TrainingCoursesRecordsDao {
    @Autowired
    private TrainingCoursesRecordsDao trainingCoursesRecordsDao;

    @Override
    public int insertTrainingCoursesRecords(Map map) {
        return trainingCoursesRecordsDao.insertTrainingCoursesRecords(map);
    }

    @Override
    public int deleteTrainingCoursesRecords(Map map) {
        return trainingCoursesRecordsDao.deleteTrainingCoursesRecords(map);
    }

    @Override
    public int updateTrainingCoursesRecords(Map map) {
        return trainingCoursesRecordsDao.updateTrainingCoursesRecords(map);
    }

    @Override
    public List<TrainingCoursesRecords> findTrainingCoursesRecordsByPage(Map map) {
        return trainingCoursesRecordsDao.findTrainingCoursesRecordsByPage(map);
    }

    @Override
    public long Total(Map map) {
        return trainingCoursesRecordsDao.Total(map);
    }

    @Override
    public List<TrainingCoursesRecords> findTrainingCoursesRecordsByWorkerId(Map map) {
        return trainingCoursesRecordsDao.findTrainingCoursesRecordsByWorkerId(map);
    }
}
